with open("file.txt","r") as f:
    x=f.readline(6)
    print(x)












# file="file.txt"
# with open(file, 'r') as f:
#     line=f.readline()
#     print(line)               #读到了一行，包含结果的换行，print又换行，多个换行
#     print("===========")
#     print(line,end="")
#     print("===========")
#     print(line.strip()) # 把末尾的'\n'删掉
#     print("===========")
#     line4=f.readline(4)   #读取参数指定个数的字符
#     print(line4)
    
    